package com.github.bluesbruce.h2.service.api.impl;

import com.github.bluesbruce.h2.service.api.UserService;
import com.github.bluesbruce.h2.service.dao.UserDao;
import com.github.bluesbruce.h2.service.entity.UserEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * H2 demo 接口实现类
 *
 * @author BBF
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;

    @Override
    public UserEntity getOne(Integer id) {
        return userDao.getOne(id);
    }

    @Override
    public List<UserEntity> getList(String name, String password) {
        return userDao.getList(name, password);
    }
}
